package com.googlecode.beanfiles.excel;

import java.io.InputStream;
import java.util.Collection;
import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.googlecode.beanfiles.readers.ReaderIteratorBase;
import com.googlecode.beanfiles.translators.PropertyTranslator;


public class ExcelReaderIterator<T> extends ReaderIteratorBase<T>  {

    protected static Log log() {
        return LogFactory.getLog(ExcelReaderIterator.class);
    }
    
    public ExcelReaderIterator(Class<T> target, InputStream input, Map<String, PropertyTranslator> translators) {
        super(target, new EventModelIterator<Collection<Object>>(input), translators);
    }
    
    public ExcelReaderIterator(Class<T> target, InputStream input) {
        super(target, new EventModelIterator<Collection<Object>>(input));
    }

    public ExcelReaderIterator(Map<String, String> headingMap, Class<T> target, InputStream input) {
        super(target, headingMap, new EventModelIterator<Collection<Object>>(input));
    }

    public ExcelReaderIterator(Map<String, String> headingMap, Class<T> target, InputStream input, Map<String, PropertyTranslator> translators) {
        super(target, translators, headingMap, new EventModelIterator<Collection<Object>>(input));
    }
    
}
